﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Wix.Aura.Common.CustomTypes;

namespace Wix.Aura.Common {
	public class ComponentSearch : Search {

		public ComponentSearch(string id)
			: base(id) {
		}

		public Guid? Guid { get; set; }
		public SearchType SearchType { get; set; }

		public override System.Xml.Schema.XmlSchema GetSchema() {
			throw new NotImplementedException();
		}

		public override void ReadXml(System.Xml.XmlReader reader) {
			throw new NotImplementedException();
		}

		public override void WriteXml(System.Xml.XmlWriter writer) {
			writer.WriteStartElement("ComponentSearch");
			writer.WriteAttribute("Id", Id);
			writer.WriteAttribute("Guid", Guid);
			writer.WriteAttribute("Type", SearchType);
			if (Child != null)
				Child.WriteXml(writer);
			writer.WriteEndElement();
		}
	}
}
